<?php
// inc/library/sql.query.php
namespace smp\Database;

class libSQL {

	private static $querys = array(
		
		// ConfigQuerys ->
		'Config.Load' => 'SELECT * FROM config LIMIT 1',
		'Config.Save' => 'UPDATE
								config
							SET
								debug = ?,
								lockdown = ?,
								title = ?,
								website = ?,
								email = ?,
								savelog = ?
							WHERE
								version = ?',
		'Config.Save.Param' => 'iisssis',
		'Config.ReadPages' => 'SELECT
									p.alias,
									m.path
								FROM
									pages p,
									module m
								WHERE
									m.ID = p.module' // -!
		
	);

	public static function getQuery($query) {
		if(!isset(static::$querys[$query])) { return NULL; }
	return static::$querys[$query];
	}

}

?>